﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BootstrapBlazor.Components;

namespace BootstrapBlazorApp.Shared.Data
{
    public class Department
    {
        [AutoGenerateColumn(Ignore =true)]
        public int Id { get; set; }
        [AutoGenerateColumn(Order =1)]
        [Display(Name ="部门名称")]
        public string? Name { get; set; }
        [AutoGenerateColumn(Order = 2)]
        [Display(Name = "是否有子级")]
        public bool HasChildren { get; set; }
        [AutoGenerateColumn(Order = 3)]
        [Display(Name = "父级位置")]
        public float? PartentPosition { get; set; }
        [AutoGenerateColumn(Order = 4)]
        [Display(Name = "同级位置")]
        public float? Position { get; set; }

    }
}
